import requests

# 1. 登录接口url
login_url = "http://localhost:8080/cms/manage/loginJump.do"

# 2. 登录录参接口
login_data={"userAccount":"admin","loginPwd":"123456"}



# 3.登录接口请求头
login_headers = {"content-type":"application/x-www-form-urlencoded", "charset":"UTF-8"}


nasa = requests.post(url=login_url,data=login_data,headers=login_headers)
a=nasa.json().get('msg')
assert a == "登录成功!","登录失败！"